Release 10.1A: OpenEdge Development:
Java Open Clients


Establishing the connection

To establish a connection to an AppServer, you must instantiate an AppObject. You may create an AppObject using one of the four available constructors, described in this section.

The following constructor establishes an AppServer connection, with the AppServer information specified in the Connection object (connectObj):

public AppObject(com.progress.open4gl.javaproxy.Connection connectObj) 

Where AppObject is the name of the AppObject as defined in ProxyGen.

A Connection object can be instantiated with one of the constructors documented in the "Connection object" section.

The following constructor establishes an AppServer connection, with the specified AppServer connection information (url), user ID, password, and information required by the AppServer application at connection time:

public AppObject(String url, String userid, String password,  
     String appserver-info) 

Where AppObject is the name of the AppObject as defined in ProxyGen.

For more information on the AppServer URL connection parameter format and default connection information, see the sections on connecting to an AppServer using a URL in OpenEdge Application Server: Developing AppServer Applications .

The following constructor establishes an AppServer connection, with the specified user ID, password, and information required by the AppServer application at connection time:

public AppObject(String userid, String password, String appserver-info) 

Where AppObject is the name of the AppObject as defined in ProxyGen.

The above constructor uses default AppServer connection information. This defaults the URL to AppServer://localhost:5162/appService, where appService is the AppService setting specified on the General tab of the Generate dialog box in ProxyGen.

The following constructor establishes an AppServer connection, with no specified AppServer information:

public AppObject() 

Where AppObject is the name of the AppObject as defined in ProxyGen.

The constructor above uses default AppServer connection information. This defaults the URL to AppServer://localhost:5162/appService, where appService is the AppService setting specified on the General tab of the Generate dialog box in ProxyGen.

Also see the information on connecting to an AppServer in OpenEdge Development: Open Client Introduction and Programming .

Supported AppServer modes

For Java Open Clients, the supported AppServer operating modes are the session-managed modes of state-aware, state-reset, and stateless, and the session-free mode state-free. For more information, see the discussion of “Session Models” in the chapter on “Generating Proxies and Web Service Definitions” in OpenEdge Development: Open Client Introduction and Programming .

To access a session-free AppServer, you must set the proxy property PROGRESS.Session.sessionModel to 1. For more information, see Chapter 7, " Accessing Proxy Properties."


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095